package com.itheima.util;

import com.itheima.pojo.HmArticles;
import lombok.Data;

import java.util.List;


@Data
public class PageResult<T> {
    private Integer counts;
    private List<T> list;
    private Object items;
    private String page;
    private Integer pages;
    private String pagesize;

    public PageResult() {
    }

    public PageResult(Integer counts, Object items ,List<T> list, String page, Integer pages, String pagesize) {
        this.counts = counts;
        this.items = items;
        this.list = list;
        this.page = page;
        this.pages = pages;
        this.pagesize = pagesize;
    }

    public PageResult(Integer counts, Object items, String page, Integer pages, String pagesize) {
        this.counts = counts;
        this.items = items;
        this.page = page;
        this.pages = pages;
        this.pagesize = pagesize;
    }
}
